package com.rub.android.utils.parser

import java.util.ArrayList


internal class Node(
    var name: String?,
    var path: String
) {
    internal inner class Attribute(var mKey: String?, var mValue: String?)

    var content: String? = null

    val attributes = ArrayList<Attribute>()

    val children = ArrayList<Node>()

    fun addAttribute(key: String?, value: String?) {
        attributes.add(Attribute(key, value))
    }

    fun addChild(child: Node) {
        children.add(child)
    }

    init {
        path = path
    }
}
